package com.examination.service.integralModel;

import com.examination.dao.integralModel.ConversionSDao;
import com.examination.entity.Conversion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ConversionSService implements ConversionSDao {
    @Autowired
    private ConversionSDao conversionSDao;


    @Override
    public int insertConversion(Map map) {
        return conversionSDao.insertConversion(map);
    }

    @Override
    public int deleteConversion(Map map) {
        return conversionSDao.deleteConversion(map);
    }

    @Override
    public List<Conversion> findConversion(Map map) {
        return conversionSDao.findConversion(map);
    }

    @Override
    public long Total(Map map) {
        return conversionSDao.Total(map);
    }

    @Override
    public List<Conversion> findConversionBySid(Map map) {
        return conversionSDao.findConversionBySid(map);
    }

    @Override
    public long totalByStaffId(Map map) {
        return conversionSDao.totalByStaffId(map);
    }

    @Override
    public List<Conversion> selectConversion(Map map) {
        return conversionSDao.selectConversion(map);
    }

    @Override
    public int countConversionByStaffIdAll(Map map) {
        return conversionSDao.countConversionByStaffIdAll(map);
    }

    @Override
    public int countConversionByStaffIdMonth(Map map) {
        return conversionSDao.countConversionByStaffIdMonth(map);
    }

    @Override
    public Double consumePriceByStaffIdAll(Map map) {
        return conversionSDao.consumePriceByStaffIdAll(map);
    }

    @Override
    public Double consumePriceByStaffIdMonth(Map map) {
        return conversionSDao.consumePriceByStaffIdMonth(map);
    }
}
